##进度条函数
def report(count, blockSize, totalSize):
    print ('已下载%02d%%\r'%(100.0 * count * blockSize/ totalSize),end = '')
##进度条函数

urllib.request.urlretrieve(compress, "222.7z", reporthook = report)
##下载文件
